package com.kapcb.common.function;

/**
 * <a>Title: BranchHandler </a>
 * <a>Author: Kapcb <a>
 * <a>Description: 分支处理接口 <a>
 *
 * @author Kapcb
 * @version 1.0
 * @date 2024/4/21 11:14
 * @since 1.0
 */
@FunctionalInterface
public interface BranchHandler extends Branch {

    /**
     * assert branch handler
     *
     * @param trueHandler  为 true 进行的操作  {@link Runnable}
     * @param falseHandler 为 false 进行的操作 {@link Runnable}
     */
    void trueOrFalseHandle(Runnable trueHandler, Runnable falseHandler);

}
